<?php

/**
 * HostDeck - Web Hosting Automation
 * http://code.google.com/p/hostdeck
 * --------------------------------------------
 * Last Modified:		March 10, 2012 @ 12:26 P.M.
 * Core Version:		1.0.0
 * Graph API Version:	1.0.0
 * Component Version:	1.0.0
 */

define("LINK", "./");
 
###
## Require Configuration File
###
require LINK . "library/configuration.php";

?>
<!DOCTYPE html>
<html>
<head>
<title>HostDeck // Server Error</title>
<link rel="stylesheet" type="text/css" media="all" href="./assets/css/bootstrap.css" />
<style type="text/css">
    body {
		padding-top: 60px;
		padding-bottom: 40px;
    }
</style>
<link rel="stylesheet" type="text/css" media="all" href="./assets/css/bootstrap-responsive.css" />
</head>
<body>
<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</a>
			<a class="brand" href="#"><?php echo $sitename; ?></a>
			<div class="nav-collapse">
				<ul class="nav">
					<!-- empty navigation -->
				</ul>
			</div><!--/.nav-collapse -->
		</div>
	</div>
</div>

<div class="container">
	<div class="hero-unit">
		<h1>Server Error</h1>
		<p>
			A server error has occurred. Details of the error are included below:
			
			<br /><br />
			
			<?php
			
			if(empty($_GET["msg"])) {
				echo "<pre>Returned error message: null</pre>";
			}
			else {
				$error = str_replace("+", " ", $_GET["msg"]);
				echo "<pre>Returned error message: {$error}</pre>";
			}
			
			?>
			<br />
			Please report this to your systems administrator. Or if you can't, you can try re-submitting your request at a later time.
			
			<br />
			
			<br />
			
			<a href="javascript:history.go(-1)">&laquo; Go Back</a>
			
		</p>		
	</div>
</div>
<div class="container">
	
	<hr />

	<footer>
		&copy; <?php echo date("Y"); ?> HostDeck Web Host Autmation
	</footer>
</div>